{% extends 'base.html' %}
{% load staticfiles %}
{% block aside %}
<section class="vbox">
<section class="scrollable wrapper-lg">
  <div class="row">
    <div class="col-sm-6">
      <form data-validate="parsley" action="{% url 'post:post_publish' %}" method="post">
        <section class="panel panel-default">
          <header class="panel-heading">
            <span class="h4">主题发布</span>
          </header>
          <div class="panel-body">
          {% csrf_token %}
            <p class="text-muted">请填写以下内容,点击发布即可</p>
            <div class="form-group">
              <label>{{ form.title.label }}</label>
              {{ form.title }}
            </div>
            <div class="form-group">
                <label>{{ form.category.label }}</label>
                {{ form.category }}
            </div>
            <div class="form-group">
              <label>{{ form.content.label }}</label>
              {{ form.content }}
            </div>
          </div>
          <footer class="panel-footer text-left bg-light lter">
            <button type="submit" class="btn btn-success btn-s-xs">发布</button>
          </footer>
        </section>
      </form>
      <input type="hidden" name="next" value="{{ next }}"/>
    </div>
  </div>
</section>
{% endblock %}